<?php
class appConstsClass {
	var $CONTROL_LOGIN;
	var $CONTROL_REG_DEVICE;
	var $CONTROL_GET_DEVICE_DATA;
	var $CONTROL_SEND_TO_DEVICE;
	var $CONTROL_GETPRODUCTTYPE;
	var $CONTROL_SIGNUP;
	var $CONTROL_SENDGCM;
	var $CONTROL_USERTYPECHANGE;
	var $CONTROL_ADDPRODUCT;
	var $CONTROL_CHANGEROLES;
	var $LOGIN_SUCCESS;
	var $LOGIN_FAILURE;
	var $DBUSERNAME;
	var $DBPASSWORD;
	var $DBNAME;
	var $SERVER; 
	var $LOGINNEEDED;
	var $USERALREADY;
	var $USERREGISTEREDSUCCESS;
	var $DEBUG;
	var $CONTROL_USERPROFILE;
	var $USERPROFILEPWDNOTCHANGED;
	var $USER_OLD_PASSWORD_WRONG;
	var $USER_OLD_PASSWORD_OK;
	var $PRINTPRODUCTDATA;
	var $PRINTREGID;
	var $GCM_MESSAGE_FOR_PRODUCT_DATA_SUBMISSION;
	var $USERTYPE_ADMIN;
	var $DB_CONNECTION_FAILURE;
	var $CONTROL_SEARCHUSEREMAIL;
	var $CONTROL_LOGOUT;
	function initialize()  {
		$this->CONTROL_LOGIN = '1';
		$this->CONTROL_REG_DEVICE = '2';
		$this->CONTROL_GET_DEVICE_DATA = '3';
		$this->CONTROL_SEND_TO_DEVICE = '4';
		$this->CONTROL_SIGNUP = '6';
		$this->LOGIN_SUCCESS = '1001';
		$this->LOGIN_FAILURE = '1002';
		$this->DB_CONNECTION_FAILURE='10001';
		$this->SERVER = $_SERVER['SERVER_ADDR'];
		if ($this->SERVER == '192.186.249.4') {
			$this->DBUSERNAME = 'relsell';
			$this->DBPASSWORD = '2502success';
			$this->DBNAME = 'posdatabase';
		} else {
			$this->SERVER = '127.0.0.1';
			$this->DBUSERNAME = 'root';
			$this->DBPASSWORD = 'success';
			$this->DBNAME = 'posdatabase';
		}
		$this->LOGINNEEDED = '5';
		$this->USERALREADY = '7';
		$this->USERREGISTEREDSUCCESS = '8';
		$this->USERPROFILEPWDNOTCHANGED = '9';
		$this->USER_OLD_PASSWORD_WRONG = '10';
		$this->USER_OLD_PASSWORD_OK = '11';
		$this->CONTROL_USERPROFILE = '12';
		$this->DEBUG = false;
		$this->PRINTPRODUCTDATA = 'printproductdata';
		$this->PRINTREGID = 'printregid';
		$this->CONTROL_GETPRODUCTTYPE = '13';
		$this->CONTROL_USERTYPECHANGE = '14';
		$this->CONTROL_SENDGCM = '15';
		$this->GCM_MESSAGE_FOR_PRODUCT_DATA_SUBMISSION = '16';
		$this->CONTROL_ADDPRODUCT = '17';
		$this->USERTYPE_ADMIN = '3';
		$this->CONTROL_CHANGEROLES = '18';
		$this->CONTROL_SEARCHUSEREMAIL = '19';
		$this->CONTROL_LOGOUT = '20';
		
	}
}
?>